Since commit
7e14a47e7c73 ("xen/arm64: head Rework and document
launch()"), the boot code is setting x22 but not read it.
So remove the two instructions setting x22 and update the documentation
to show x22 has no specific purpose.
Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Wei Chen <Wei.Chen@arm.com>
* x19 - paddr(start)
* x20 - phys offset
* x21 - DTB address (boot cpu only)
- * x22 - is_secondary_cpu
+ * x22 -
* x23 - UART address
* x24 -
* x25 -
#endif
PRINT("- Boot CPU booting -\r\n")
- mov x22, #0 /* x22 := is_secondary_cpu */
-
bl check_cpu_mode
bl cpu_init
bl create_page_tables
adr x19, start /* x19 := paddr (start) */
sub x20, x19, x0 /* x20 := phys-offset */
- mov x22, #1 /* x22 := is_secondary_cpu */
-
mrs x0, mpidr_el1
ldr x13, =(~MPIDR_HWID_MASK)
bic x24, x0, x13 /* Mask out flags to get CPU ID */